package com.suns.sharephoto.mapper;

import com.suns.sharephoto.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User findByOpenid(@Param("openid") String openid);
    void insert(User user);
    void update(User user);

    User findById(Integer userId);
}